#include <stdio.h>

int main(int argc,char*argv[])
{
    if(argc!=2)
    {
        printf("argv error\n");
        return 1;
    }
    FILE *fp=fopen(argv[1],"r");
    if(fp==NULL)
    {
        perror("fopen:");
        return 2;
    }
    char line[64];
    while(fgets(line,sizeof(line),fp)!=NULL)
    {
        fprintf(stdout,"%s",line);
    }
    fclose(fp);
}
